package com.wyp168.serviceedu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wyp168.serviceedu.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wyp168.serviceedu.entity.frontVo.CourseFrontVo;
import com.wyp168.serviceedu.entity.frontVo.CourseWebVo;
import com.wyp168.serviceedu.entity.vo.*;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author wyp168
 * @since 2022-05-04
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseById(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo publishCourseInfo(String id);

    Page<EduCourse> queryByConditionPage(Integer pageNum, Integer pageSize, CourseQuery courseQuery);

    void deleteById(String courseId);
    //条件查询带分页课程信息
    Map<String, Object> getCourseFrontList(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);

    //根据课程id查询相应课程的基本信息
    CourseWebVo getCourseInfo(String courseId);
}
